'''
Created on 2012-9-19

@author: infear
'''
def modifyValueOrRef(para):
    try:
        para[1]="r"
    except:
        print "wrong param"

def hello(greeting="hello",name="zg"):
    print greeting,",",name

def collectParamsList(*prarm):
    for i in prarm:
        print i

def collectParamsDict(**param):
    print param

list_str="str"    
modifyValueOrRef(list_str)
list_str=[1,2]
print list_str
hello( name="infear",greeting="lalala")
hello(name="infear")
hello("infear")
collectParamsList(1,2,3)
collectParamsDict(x=1,y=2)
